package utilities;

public class Criterion {
        public static enum Operator {
           EQ,LEQ,GEQ,L,G
        }

	public static enum Choice{
		FILENAME, FILESIZE
	}
	private Choice param;
	private Operator operator;
	private String value;
	
	
        /*
	public Criterion(Choice param, Operator operator, String value) {
		super();
		this.param = param;
		this.operator = operator;	
		switch (this.param){
		case FILESIZE:
			int i= Integer.parseInt(value);
   	   	    this.value = value;	
		break;
		case FILENAME:
   	   	    this.value = value;	
		default:
                }
	}
        */

	public Criterion() {
		super();
	}

	
	public Operator getOperator() {
		return operator;
	}


	public void setOperator(Operator operator) {
		this.operator = operator;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}

	
	
	public Choice getParam() {
		return param;
	}


	public void setParam(Choice param) {
		this.param = param;
	}


	@Override
	public String toString() {
		return "Criterion [param=" + param + ", operator=" + operator
				+ ", value=" + value + "]";
	}
	

}
